package com.myjob.service;

import com.myjob.dto.KeyPairDto;
import com.myjob.entity.User;
import com.myjob.response.Result;
import org.springframework.stereotype.Service;

import java.util.Map;


/**
 * @author chenyuan
 * @date 2021/1/17 11:53
 */
@Service
public interface LoginService {

	public Integer loginWithPassword(String username, String password);

	public Integer loginWithCode(String username, String code, Map<String, String> resultMap);

	public Boolean phoneIsExist(String phone);

	public Boolean emailIsExist(String email);

	public String sendCode(String phoneNumber);

	public Boolean registerAccount(User user);
}
